<#include "/template/_openwin.html" /> 
<@head>
<style>
.form-table,.form-table td{
	border:1px solid #dddddd;   
    border-collapse:collapse;  
    height: 18px;
    font-size: 10px;
    padding: 0px;
}
.form-table{
	width: 100%;
}
</style>
</@head>
<@buttons>


<a href="#" class="easyui-linkbutton"
	data-options="plain:true,iconCls:'icon-add'" onclick="save()">保存</a>
<a href="#" class="easyui-linkbutton"
	data-options="plain:true,iconCls:'icon-cancel'" onclick="javascript:window.close();">取消</a>
</@buttons> 

<@body>

<div>
<form id="ff" method="post" action="${root!}/frameuser/changepassword">  
            <table class="form-table">  
                <tr>  
                    <td width="25%">上级部门:</td>  
                    <td width="75%"><select class="easyui-combotree" value="${parentId}" data-options="url:'${root!}/framedept/leftTree'"  name="dept.parentId" style="width:156px;"/></td>  
                </tr>  
                <tr>  
                    <td>部门名称:</td>  
                    <td><input  style="width: 99%" class="easyui-validatebox" type="text" name="dept.deptName" data-options="required:true"></input></td>  
                </tr>  
                
                <tr>  
                    <td>排序号:</td>  
                    <td><input  style="width: 99%" class="easyui-validatebox" type="number" name="dept.order" data-options="required:false"></input></td>  
                </tr>  
            </table>  
        </form>
</div>
</@body>
<script type="text/javascript">
	function save(){
		$('#ff').form('submit',{
			dataType:"json",
			success:function(msg){
		        alert(msg);
		        $('#ff').form('clear');
		    }
		});
	}
	
	function saveAndClose(){
		$('#ff').form('submit',{
			dataType:"json",
			success:function(msg){
		        alert(msg);
		        window.returnValue="1";
				window.close();
		    }
		});
	}
</script>